package com.fs.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description
 * @Author susu
 * @Date 2024/10/17
 */
@Data
public class OrderSearchDTO {
    private Long id; // 订单id
    private Integer ordersStatus; // 订单状态
    private Integer payStatus; // 支付状态
    private Integer refundStatus; // 退款状态
    private String  contactsPhone; //电话号码
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime; // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    public OrderSearchDTO() {
    }

    public OrderSearchDTO(Long id, Integer ordersStatus, Integer payStatus, Integer refundStatus, String contactsPhone, Date createTime, Date startDate, Date endDate) {
        this.id = id;
        this.ordersStatus = ordersStatus;
        this.payStatus = payStatus;
        this.refundStatus = refundStatus;
        this.contactsPhone = contactsPhone;
        this.createTime = createTime;
        this.startDate = startDate;
        this.endDate = endDate;
    }
}
